{% load helpers %}
{% load static %}

<script type="text/javascript">
    {% if result.status != 'FAILURE' and result.status != 'REVOKED' and result.status != 'SUCCESS' %}
        var job_is_pending = true;
    {% else %}
        var job_is_pending = false;
    {% endif %}
    var job_result_id = "{{ result.pk }}";

</script>
<script src="{% versioned_static 'js/job_result.js' %}"
        onerror="window.location='{% url 'media_failure' %}?filename=js/job_result.js'"></script>
